Optimal. Leaf size=35 \[ \sqrt {x} \sqrt {1-a x}+\frac {\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{\sqrt {a}} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {50, 54, 216} \begin {gather*} \sqrt {x} \sqrt {1-a x}+\frac {\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{\sqrt {a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 54
Rule 216
Rubi steps
\begin {align*} \int \frac {\sqrt {1-a x}}{\sqrt {x}} \, dx &=\sqrt {x} \sqrt {1-a x}+\frac {1}{2} \int \frac {1}{\sqrt {x} \sqrt {1-a x}} \, dx\\ &=\sqrt {x} \sqrt {1-a x}+\operatorname {Subst}\left (\int \frac {1}{\sqrt {1-a x^2}} \, dx,x,\sqrt {x}\right )\\ &=\sqrt {x} \sqrt {1-a x}+\frac {\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{\sqrt {a}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 35, normalized size = 1.00 \begin {gather*} \sqrt {x} \sqrt {1-a x}+\frac {\sin ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{\sqrt {a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.08, size = 54, normalized size = 1.54 \begin {gather*} \sqrt {x} \sqrt {1-a x}+\frac {\sqrt {-a} \log \left (\sqrt {1-a x}-\sqrt {-a} \sqrt {x}\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 92, normalized size = 2.63 \begin {gather*} \left [\frac {2 \, \sqrt {-a x + 1} a \sqrt {x} - \sqrt {-a} \log \left (-2 \, a x + 2 \, \sqrt {-a x + 1} \sqrt {-a} \sqrt {x} + 1\right )}{2 \, a}, \frac {\sqrt {-a x + 1} a \sqrt {x} - \sqrt {a} \arctan \left (\frac {\sqrt {-a x + 1}}{\sqrt {a} \sqrt {x}}\right )}{a}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 62, normalized size = 1.77 \begin {gather*} \sqrt {-a x +1}\, \sqrt {x}+\frac {\sqrt {\left (-a x +1\right ) x}\, \arctan \left (\frac {\left (x -\frac {1}{2 a}\right ) \sqrt {a}}{\sqrt {-a \,x^{2}+x}}\right )}{2 \sqrt {-a x +1}\, \sqrt {a}\, \sqrt {x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 48, normalized size = 1.37 \begin {gather*} -\frac {\arctan \left (\frac {\sqrt {-a x + 1}}{\sqrt {a} \sqrt {x}}\right )}{\sqrt {a}} + \frac {\sqrt {-a x + 1}}{{\left (a - \frac {a x - 1}{x}\right )} \sqrt {x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.99, size = 38, normalized size = 1.09 \begin {gather*} \sqrt {x}\,\sqrt {1-a\,x}+\frac {2\,\mathrm {atan}\left (\frac {\sqrt {a}\,\sqrt {x}}{\sqrt {1-a\,x}-1}\right )}{\sqrt {a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.90, size = 83, normalized size = 2.37 \begin {gather*} \begin {cases} \frac {i a x^{\frac {3}{2}}}{\sqrt {a x - 1}} - \frac {i \sqrt {x}}{\sqrt {a x - 1}} - \frac {i \operatorname {acosh}{\left (\sqrt {a} \sqrt {x} \right )}}{\sqrt {a}} & \text {for}\: \left |{a x}\right | > 1 \\\sqrt {x} \sqrt {- a x + 1} + \frac {\operatorname {asin}{\left (\sqrt {a} \sqrt {x} \right )}}{\sqrt {a}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________